/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */

import java.util.Random;

/**
 * <p>Project: jse2204 - T1
 * <p>Powered by webrx On 2022-09-29 09:43:46
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class T1 extends Thread{
    @Override
    public void run() {
        Random rand = new Random();
        for (int i = 0; i < 5; i++) {
            try{
                Thread.sleep(rand.nextInt(1000,5000));
            }catch(Exception e){
                e.printStackTrace();
            }
            System.out.printf("%s:%d%n",this.getName(),i+1);
        }
    }
}
